package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 两融合约
 */
@ApiModel(description = "两融合约")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ContractItem   {
  @JsonProperty("custName")
  private String custName = null;

  @JsonProperty("custNo")
  private String custNo = null;

  @JsonProperty("custRelation")
  private String custRelation = null;

  @JsonProperty("custPhone")
  private String custPhone = null;

  @JsonProperty("contractNo")
  private String contractNo = null;

  @JsonProperty("contractType")
  private String contractType = null;

  @JsonProperty("expireDate")
  private String expireDate = null;

  @JsonProperty("securityName")
  private String securityName = null;

  @JsonProperty("securityNo")
  private String securityNo = null;

  @JsonProperty("transactionAmount")
  private String transactionAmount = null;

  public ContractItem custName(String custName) {
    this.custName = custName;
    return this;
  }

  /**
   * 客户姓名
   * @return custName
  **/
  @ApiModelProperty(value = "客户姓名")


  public String getCustName() {
    return custName;
  }

  public void setCustName(String custName) {
    this.custName = custName;
  }

  public ContractItem custNo(String custNo) {
    this.custNo = custNo;
    return this;
  }

  /**
   * 客户号
   * @return custNo
  **/
  @ApiModelProperty(value = "客户号")


  public String getCustNo() {
    return custNo;
  }

  public void setCustNo(String custNo) {
    this.custNo = custNo;
  }

  public ContractItem custRelation(String custRelation) {
    this.custRelation = custRelation;
    return this;
  }

  /**
   * 客户关系
   * @return custRelation
  **/
  @ApiModelProperty(value = "客户关系")


  public String getCustRelation() {
    return custRelation;
  }

  public void setCustRelation(String custRelation) {
    this.custRelation = custRelation;
  }

  public ContractItem custPhone(String custPhone) {
    this.custPhone = custPhone;
    return this;
  }

  /**
   * 客户手机号
   * @return custPhone
  **/
  @ApiModelProperty(value = "客户手机号")


  public String getCustPhone() {
    return custPhone;
  }

  public void setCustPhone(String custPhone) {
    this.custPhone = custPhone;
  }

  public ContractItem contractNo(String contractNo) {
    this.contractNo = contractNo;
    return this;
  }

  /**
   * 合约编号
   * @return contractNo
  **/
  @ApiModelProperty(value = "合约编号")


  public String getContractNo() {
    return contractNo;
  }

  public void setContractNo(String contractNo) {
    this.contractNo = contractNo;
  }

  public ContractItem contractType(String contractType) {
    this.contractType = contractType;
    return this;
  }

  /**
   * 合约类型
   * @return contractType
  **/
  @ApiModelProperty(value = "合约类型")


  public String getContractType() {
    return contractType;
  }

  public void setContractType(String contractType) {
    this.contractType = contractType;
  }

  public ContractItem expireDate(String expireDate) {
    this.expireDate = expireDate;
    return this;
  }

  /**
   * 合约到期时间
   * @return expireDate
  **/
  @ApiModelProperty(value = "合约到期时间")


  public String getExpireDate() {
    return expireDate;
  }

  public void setExpireDate(String expireDate) {
    this.expireDate = expireDate;
  }

  public ContractItem securityName(String securityName) {
    this.securityName = securityName;
    return this;
  }

  /**
   * 证券名称
   * @return securityName
  **/
  @ApiModelProperty(value = "证券名称")


  public String getSecurityName() {
    return securityName;
  }

  public void setSecurityName(String securityName) {
    this.securityName = securityName;
  }

  public ContractItem securityNo(String securityNo) {
    this.securityNo = securityNo;
    return this;
  }

  /**
   * 证券代码
   * @return securityNo
  **/
  @ApiModelProperty(value = "证券代码")


  public String getSecurityNo() {
    return securityNo;
  }

  public void setSecurityNo(String securityNo) {
    this.securityNo = securityNo;
  }

  public ContractItem transactionAmount(String transactionAmount) {
    this.transactionAmount = transactionAmount;
    return this;
  }

  /**
   * 成交金额
   * @return transactionAmount
  **/
  @ApiModelProperty(value = "成交金额")


  public String getTransactionAmount() {
    return transactionAmount;
  }

  public void setTransactionAmount(String transactionAmount) {
    this.transactionAmount = transactionAmount;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ContractItem contractItem = (ContractItem) o;
    return Objects.equals(this.custName, contractItem.custName) &&
        Objects.equals(this.custNo, contractItem.custNo) &&
        Objects.equals(this.custRelation, contractItem.custRelation) &&
        Objects.equals(this.custPhone, contractItem.custPhone) &&
        Objects.equals(this.contractNo, contractItem.contractNo) &&
        Objects.equals(this.contractType, contractItem.contractType) &&
        Objects.equals(this.expireDate, contractItem.expireDate) &&
        Objects.equals(this.securityName, contractItem.securityName) &&
        Objects.equals(this.securityNo, contractItem.securityNo) &&
        Objects.equals(this.transactionAmount, contractItem.transactionAmount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(custName, custNo, custRelation, custPhone, contractNo, contractType, expireDate, securityName, securityNo, transactionAmount);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ContractItem {\n");
    
    sb.append("    custName: ").append(toIndentedString(custName)).append("\n");
    sb.append("    custNo: ").append(toIndentedString(custNo)).append("\n");
    sb.append("    custRelation: ").append(toIndentedString(custRelation)).append("\n");
    sb.append("    custPhone: ").append(toIndentedString(custPhone)).append("\n");
    sb.append("    contractNo: ").append(toIndentedString(contractNo)).append("\n");
    sb.append("    contractType: ").append(toIndentedString(contractType)).append("\n");
    sb.append("    expireDate: ").append(toIndentedString(expireDate)).append("\n");
    sb.append("    securityName: ").append(toIndentedString(securityName)).append("\n");
    sb.append("    securityNo: ").append(toIndentedString(securityNo)).append("\n");
    sb.append("    transactionAmount: ").append(toIndentedString(transactionAmount)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

